import {Routes, RouterModule} from '@angular/router';
import {ModuleWithProviders} from '@angular/core';
import {ShopComponent} from "./shop.component";
import {ListComponent} from "./list/list.component";
import {EditComponent} from "./edit/edit.component";
import {AddComponent} from "./add/add.component";

export const routes: Routes = [
  {
    path: '',
    component: ShopComponent,
  },
    {path:'list',component: ListComponent},
    {path:'list/:id',component: ListComponent},
    {path:'add/:id',component: AddComponent},
    {path:'edit',component: AddComponent},
];


export const routing: ModuleWithProviders = RouterModule.forChild(routes);
